import request from '@/utils/request'

// 查询微官网列表
export function listMember(query) {
  return request({
    url: '/api/website/member/list',
    method: 'get',
    params: query
  })
}

// 查询微官网详细
export function getMember(websiteId) {
  return request({
    url: '/api/website/member/' + websiteId,
    method: 'get'
  })
}

// 新增微官网
export function addMember(data) {
  return request({
    url: '/api/website/member',
    method: 'post',
    data: data
  })
}

// 修改微官网
export function updateMember(data) {
  return request({
    url: '/api/website/member',
    method: 'put',
    data: data
  })
}

// 删除微官网
export function delMember(websiteId) {
  return request({
    url: '/api/website/member/' + websiteId,
    method: 'delete'
  })
}
